projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ca576b
)
(disable-command): Reject invalid commands.
author
Richard M. Stallman
<rms@gnu.org>
Wed, 2 Feb 1994 18:46:29 +0000
(18:46 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 2 Feb 1994 18:46:29 +0000
(18:46 +0000)
lisp/novice.el
patch
|
blob
|
history
diff --git
a/lisp/novice.el
b/lisp/novice.el
index 2353edc5719eb1bc013e9ebd3c6786226b28c671..972d0737649d37e54d09247d064d341e81ddda62 100644
(file)
--- a/
lisp/novice.el
+++ b/
lisp/novice.el
@@
-108,6
+108,8
@@
to future sessions."
The user's .emacs file is altered so that this will apply
to future sessions."
(interactive "CDisable command: ")
+ (if (not (commandp command))
+ (error "Invalid command name `%s'" command))
(put command 'disabled t)
(save-excursion
(set-buffer (find-file-noselect